package nsh.cl.nd.khtn.mazedash.game;

import nsh.cl.nd.khtn.mazedash.GameConstant;
import nsh.cl.nd.khtn.mazedash.RootGameActivity;
import nsh.cl.nd.khtn.mazedash.ScreenManager;
import nsh.cl.nd.khtn.mazedash.baseclasses.BaseFadeLoadingScene;

import org.andengine.ui.activity.BaseGameActivity;

public class LoadingScene extends BaseFadeLoadingScene {
	@Override
	protected void loadResourcesBackGround() {
		// Sound
		RootGameActivity.getInstance().getSoundMusicManager().loadResource();
		// Scene
		RootGameActivity.getInstance().getScreenManager().loadResources();
	}

	@Override
	protected String getBackroundImagePath() {
		return GameConstant.PATH_MASK_BLACK;
	}

	@Override
	protected BaseGameActivity getActivityInstance() {
		return RootGameActivity.getInstance();
	}

	@Override
	protected void switchToMainScene() {
		ScreenManager screenManager = RootGameActivity.getInstance().getScreenManager();
		screenManager.showScene(screenManager.getPlayScene());
	}
}
